package com.mode.template.method;

/**
 * @Description:  模板方法
 * @Author: zyf
 * @Time: 2020/9/27 13:39
 */
public class TestMain {

    public static void main(String[] args) {
        AbstractLife manLife = new ManLife();
        manLife.cycleLife();
        System.out.printf("********************************************");
        AbstractLife loserLife = new LoserLife();
        loserLife.cycleLife();
    }
}
